package com.gg.ai.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("chat_history")
@NoArgsConstructor
@AllArgsConstructor
public class ChatHistory {
//    @JsonProperty("id")
//    @TableId(value = "id",type = IdType.AUTO)
//    private Integer id;
//    @JsonProperty("historyList")
//    private List<HistoryListDTO> historyList;
//    @JsonProperty("userId")
//    private Integer userId;
//    @JsonProperty("createTime")
//    private String createTime;
//    @JsonProperty("updateTime")
//    private String updateTime;
//    @JsonProperty("sessionId")
//    private String sessionId;
//
//    @NoArgsConstructor
//    @Data
//    public static class HistoryListDTO {
//        @JsonProperty("role")
//        private String role;
//        @JsonProperty("content")
//        private String content;
//    }

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @JsonProperty("history")
    private String historyList;
    private Integer userId;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Long sessionId;

}
